import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: '/map'
  },
  {
    path: '/map',
    name: 'map',
    component: () => import('@/views/map/index')
  },
  {
    path: '/other',
    name: 'other',
    component: () => import('@/views/other/index')
  }
]

const router = new VueRouter({
  routes
})

export default router
